<!--
  ~ Copyright (c) 2024, Oracle and/or its affiliates.
  ~
  ~   This software is dual-licensed to you under the Universal Permissive License
  ~   (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License
  ~   2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose
  ~   either license.
  ~
  ~   Licensed under the Apache License, Version 2.0 (the "License");
  ~   you may not use this file except in compliance with the License.
  ~   You may obtain a copy of the License at
  ~
  ~      https://www.apache.org/licenses/LICENSE-2.0
  ~
  ~   Unless required by applicable law or agreed to in writing, software
  ~   distributed under the License is distributed on an "AS IS" BASIS,
  ~   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~   See the License for the specific language governing permissions and
  ~   limitations under the License.
  ~
  ~
  -->

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet"
          th:href="@{/webjars/bootstrap/5.3.3/css/bootstrap.min.css}"/>
</head>
<body>

<div class="container">
    <h1 class="mt-5" th:text="${errorTitle}"/>
    <div class="alert alert-danger alert-dismissible fade show mt-3"
         role="alert">
        <strong th:text="${errorMessage}"></strong>
    </div>

    <p class="d-inline-flex gap-1">
        <button class="btn btn-primary" type="button" data-bs-toggle="collapse"
                data-bs-target="#collapseExample" aria-expanded="false"
                aria-controls="collapseExample">
            See full stacktrace
        </button>
    </p>
    <div class="collapse" id="collapseExample">
        <div class="card card-body font-monospace">
            <th:block th:text="${errorMessage}"></th:block>
            <th:block th:text="${stacktrace}"></th:block>
        </div>
    </div>


</div>

</body>
</html>
